package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 纸质领取历史
 */
@Getter
@Setter
@Document(collection = "user_paper_ca_receive_history")
@CompoundIndexes({
        @CompoundIndex(name = "receive_ca_comIdx",def = "{'userId':1,'caType':1,'caLevel':1,'activityId':1}",unique = true)
})
public class UserPaperCaReceiveHistory extends EntityBase {

    /**
     * 活动ID
     */
    @Indexed
    private String activityId;
    /**
     * 活动名称
     */
    private String activityName;
    /**
     * 用户ID
     */
    @Indexed
    private String userId;
    /**
     * 证书类型
     */
    private String caType;
    /**
     * 证书等级
     */
    private String caLevel;
    /**
     * 证书领取时间
     */
    private String receiveTime;
    /**
     * 证书模板Id
     */
    private String caTemplateId;
    /**
     * 模版图片
     */
    private String caTemplateImgUrl;

    /**
     * appId应用
     */
    private String appId;
    /**
     * 平台
     */
    private String platform="";

}
